Template.channel_settings_panel.events({
  'click #quit-channel' (e, instance) {
    Session.set('class.deleteModal.title', '退出后将无法进入频道。');
    Session.set('class.deleteModal.type', 'quit-channel');
    Session.set('class.deleteModal.id', instance.data.channel._id);
    $('#delete-modal').modal();
    
  },

  'click #delete-channel' (e, instance) {
    Session.set('class.deleteModal.title', '确定删除频道？这将删除所有数据。');
    Session.set('class.deleteModal.type', 'delete-channel');
    Session.set('class.deleteModal.id', instance.data.channel._id);
    $('#delete-modal').modal();
  }
});